home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 11 / Mac Magazin and MacEasy Magazine CD - Issue 11.iso / Sharewarebibliothek / Entwickler / nShell-Pro / bin / yesno / yesno.rsrc / TEXT_16000_man general.txt < prev    next >
Text File  |  1994-11-27  |  539b  |  29 lines

  1. yesno - ask a yes or no question
  2.  
  3. SYNOPSIS
  4.  
  5. yesno [-i] [string...]
  6.  
  7. DESCRIPTION
  8.  
  9. This command  prompts the user for a ‚Äúy‚Äù or ‚Äún‚Äù response.  The string parameters are concatenated and may not exceed a total of 255 characters.  If the -i option is used the prompt is read from standard input.
  10.  
  11. OPTIONS
  12.  
  13. -i    Read the prompt from standard input
  14.  
  15. RETURN CODES
  16.  
  17. <0    Error
  18. 0    The user selected ‚Äúy‚Äù or ‚ÄúY‚Äù
  19. 1    The user selected ‚Äún‚Äù or ‚ÄúN‚Äù
  20.  
  21. EXAMPLES
  22.  
  23.     % yesno
  24.     (y/n): y
  25.     %
  26.     % yesno ‚ÄúIs this right‚Äù
  27.     Is this right (y/n): y
  28.     %
  29.